/* 分步填写表单 */
.step-form {
	position: relative;
	padding-bottom: 40px;
	margin-top: 20px;
	margin-bottom: 10px;
	.swiper-slide {
		width: 80%;
	}
	.step-group {
		position: relative;
		display: block;
		width: 100%;
		padding: 15px;
		height: 320px;
		border-radius: 4px;
		background-color: #fff;
	}
	.step-title {
		font-size: 14px;
		color: #000;
		line-height: 1;
		padding-bottom: 5px;
		margin-bottom: 15px;
		border-bottom: 1px solid #e5e5e5;
	}
}

.wizard-progress {
	position: relative;
	display: block;
	padding-top: 20px;
	width: 100%;
	&:before {
		content: '';
		display: block;
		position: absolute;
		top: 19px;
		left: 0;
		width: 100%;
		height: 2px;
		background: #ccc;
	}
	@include clearfix;
	> div {
		position: relative;
		float: left;
		padding-top: 10px;
		font-size: 14px;
		width: 33.333333%;
		text-align: center;
		&:before {
			content: '';
			display: block;
			width: 12px;
			height: 12px;
			border: 4px solid #ccc;
			background-color: #ccc;
			border-radius: 6px;
			position: absolute;
			top: -6px;
			left: 50%;
			margin-left: -6px;
		}
		&.is-active {
			&:before {
				border-color: $primary-color;
				background-color: #fff;
			}
		}
	}
}
.form-alter {
	position: relative;
	padding: 0 30px;
	border-radius: 21px;
	min-height: 42px;
	border: 1px solid #d6d5d5;
	margin: 0 10px 30px 10px;
	line-height: 1.2;
	small {
		font-size: 12px;
		color: #d6d5d5;
	}
	i {
		font-size: 20px;
		position: absolute;
		left: 8px;
		top: 7px;
		color: #b3b3b3;
	}
	p {
		margin: 0;
		color: #ff946e;
		font-size: 14px;
	}
}
.wizard-form {
	position: relative;
	padding-top: 30px;
	.wizard-step {
		display: none;
		padding: 0 10px;
		&.is-active {
			display: block;
		}
	}
	.form-group {
		border-radius: 5px;
		background-color: #fff;
		padding: 15px;
		margin-bottom: 20px;
		&.state-blank {
			background: none;
			padding: 0;
			border-radius: 0;
		}
	}
	.control-label {
		display: block;
		font-size: 14px;
		padding: 0 0 10px 0;
		border-bottom: 1px solid #e5e5e5;
	}
	.form-control {
		// background: none;
		// border: 0;
		font-size: 14px;
		color: #555;
		// padding: 0;
		outline: none;
		-webkit-appearance: none;
		box-shadow: none;
		background: none;
	}
	.desc-content {
		color: #b3b3b3;
		font-size: 13px;
	}
}

.check-button-group {
	position: relative;
	margin-left: -6px;
	margin-right: -6px;
	@include clearfix;
	.check-button-wrap {
		float: left;
		margin: 0 6px 10px 6px;
		input {
			display: none;
			&:checked + .check-button {
				color: #fff;
				border-color: $primary-color;
				background-color: $primary-color;
			}
		}
		.check-button {
			color: #555;
			padding: 0 10px;
			line-height: 30px;
			height: 32px;
			font-size: 14px;
			border-radius: 15px;
			border: 2px solid #ccc;
			background-color: transparent;
		}
	}
}

.list-form {
	.item-form-group {
		position: relative;
		margin: 0;
		position: relative;
		padding-left: 70px;
		line-height: 30px;
		@include clearfix;
	}
	.item-control-label {
		display: block;
		float: left;
		margin: 0 0 0 -70px;
		font-size: 15px;
		color: #999;
	}
	input.item-control {
		float: left;
		width: 100%;
		line-height: 30px;
		outline: none;
		box-shadow: none;
		background: none;
		color: #333;
		border: 0;
		padding: 0;
		margin: 0;
		font-size: 15px;
		-webkit-appearance: none;
	}
	select.item-control {
		float: left;
		width: 100%;
		line-height: 30px;
		outline: none;
		box-shadow: none;
		background: none;
		color: #333;
		border: 0;
		padding: 0;
		margin: 0;
		font-size: 15px;
		-webkit-appearance: none;
	}
	.item-upload {
		position: absolute;
		left: 0;
		top: 0;
		z-index: 1;
		width: 100%;
		opacity: 0;
		height: 100%;
		cursor: pointer;
	}
}
.tc {
	text-align: center;
}
.form-modal {
	display: none;
	position: fixed;
	top: 40px;
	left: 20px;
	right: 20px;
	border-radius: 5px;
	background-color: #f2f1f1;
	padding: 10px 10px 30px 10px;
	box-shadow: 0 0 0 9999px rgba(0,0,0,0.4);
	&.is-active {
		display: block;
	}
	.btn-submit {
		width: 48%;
	}
	.btn-cancel {
		color: #fff;
		width: 48%;
	}
}
.pic-upload {
	position: relative;
	width: 100%;
	min-height: 200px;
	border: 2px dashed #ccc;
	overflow: hidden;
	&:after {
		position: absolute;
		top: 50%;
		left: 50%;
		margin-left: -30px;
		margin-top: -10px;
		font-size: 16px;
		color: #ccc;
		display: block;
		content: '点击上传';
	}
	.js-photo-preview {
		display: none;
		width: 100%;
		height: auto;
		&.is-active {
			display: block;
		}
	}
	.js-photo-upload {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 999;
	}
}
.list-block {
	input[type="text"], input[type="password"], input[type="search"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], input[type="datetime-local"], input[type="time"], input[type="number"], select, textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;
        appearance: none;
        box-sizing: border-box;
        border: none;
        background: none;
        border-radius: 0 0 0 0;
        box-shadow: none;
        display: block;
        padding: 0px;
        margin: 0;
        width: 100%;
        height: 43px;
        color: #000;
        font-size: 17px;
        font-family: inherit;

    }
    .item-title.label {
    	display: block;
        vertical-align: top;
        padding: 0;
        color: #999;
        font-weight: normal;
        text-align: left;
        border-radius: 0;
        & + .item-input {
            margin-left: 5px;
        }
    }
    input[type="date"], input[type="datetime-local"] {
        line-height: 44px;
    }
    select {
        -webkit-appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;
        appearance: none;
    }
    textarea {
        height: 100px;
        resize:none;
        line-height: 1.4;
        padding-top: 8px;
        padding-bottom: 7px;
        &.resizable {
            height: 43px;
        }
    }
    .item-input {
        width: 100%;
        margin-top: -8px;
        margin-bottom: -7px;
        -webkit-box-flex:1;
        -ms-flex:1;
        @include flex-shrink(1);
    }
    .item-image {
        width: 60px;
        height: 60px;
        margin-top: 5px;
        margin-bottom: 5px;
        border-radius: 3px;
        overflow: hidden;
        img {
            width: 60px;
            height: auto;
        }
    }
    .item-title.label {
        width: 80px;
        @include flex-shrink(0);
    }
    .js-photo-upload {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
        width: 100%;
        opacity: 0;
        max-height: none;
        height: 100%;
        cursor: pointer;
    }
    .item-upload {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
        width: 100%;
        opacity: 0;
        max-height: none;
        height: 100%;
        cursor: pointer;
    }
}

input[type="tel"],
input[type="date"],
input[type="number"] {
    &::-webkit-inner-spin-button {
        -webkit-appearance: none; 
        appearance: none; 
        margin: 0; 
    }
    &::-webkit-outer-spin-button {
        -webkit-appearance: none; 
        appearance: none; 
        margin: 0; 
    }
    &::-webkit-clear-button {
        display: none;
        -webkit-appearance: none;
    }
    &::-webkit-inner-spin-button,
    &::-webkit-calendar-picker-indicator {
        display: none;
        -webkit-appearance: none;
    }
}
.btn-default {
	background-color: #e8e8e8;
}